<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/6/9
  Time: 8:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page isELIgnored="false" %>
<html>
<head>
    <title>后台管理</title>
</head>
<body>
<center>
    <form action="/select" method="post">
        编号：<input type="text" name="id">
        套间：<input type="text" name="tj">
        入住时间：<input type="date" name="rzsj">
        <button type="submit">查询</button>
        <button type="button">入住</button>
    </form>
    <tr></tr>
    <table border="1" style="text-align: center">
        <tr>
            <th style="background-color: antiquewhite;width: 180px">编号：</th>
            <th style="background-color: antiquewhite;width: 180px">人数：</th>
            <th style="background-color: antiquewhite;width: 180px">套间：</th>
            <th style="background-color: antiquewhite;width: 180px">入住时间：</th>
            <th style="background-color: antiquewhite;width: 180px">检查时间：</th>
            <th style="background-color: antiquewhite;width: 180px">选菜：</th>
            <th style="background-color: antiquewhite;width: 180px">操作：</th>
        </tr>
        <c:forEach items="${rooms}" var="room" >
            <tr>
                <td>${room.id}</td>
                <td>${room.cr+room.et}</td>
                <td>${room.tj}</td>
                <td>${room.blrz}</td>
                <td>${room.checkDate}</td>
                <td>${room.cp}</td>
                <td><a href="/findId?id=${room.id}">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/delete?id=${room.id}">删除</a></td>
            </tr>
        </c:forEach>  <td colspan="8">
    </table>
</center>

</body>
</html>
